﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ESSManageService.Model.DBModels.Info;

namespace ESSManageService.IServices.IDBServices
{
    public interface IUserInfoServices : ISqlSugarRepository<UserInfo>
    {
        UserInfo GetUserInfo(long Id);
        bool DeleteByID(long Id);
        Task<UserInfo> SaveUserInfo(string loginName, string loginPwd);
        bool GetUserRoleNameStr(string loginName, string loginPwd);
        UserInfo GetUserInfo(string loginName, string loginPwd);
        Task<List<UserInfo>> GetAllUserInfo(string orderBy, out int pageCount, out int totalCount, int page = 1, int PageSize = 50);
    }
}
